﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HFWebApp._Default" %>
<%@ Register src="Control/c_province.ascx" tagname="c_province" tagprefix="uc1" %>
<%@ Register src="Control/c_article.ascx" tagname="c_article" tagprefix="uc2" %>
<%@ Register src="Control/c_LegalAffairsClass.ascx" tagname="c_LegalAffairsClass" tagprefix="uc3" %>
<%@ Register src="Control/c_ProvinceForKey.ascx" tagname="c_ProvinceForKey" tagprefix="uc4" %>
<%@ Register src="Control/end.ascx" tagname="end" tagprefix="uc4" %>

<%@ Register src="Control/top.ascx" tagname="top" tagprefix="uc5" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>法律咨询|律师在线-红法网</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
	<link href="Style/Style.css" rel="stylesheet" type="text/css" />
    <link href="CSS.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="Scripts/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="Scripts/WebFunction.js"></script>
    <script type="text/javascript">
        $(function () {
            //加载活跃律师
            reload_layerlist(0);
            //加载最新问答
            reload_ask(0);
            //在线律师
            reload_onlinelayerlist(2);
            //案件委托
            reload_delegateList(0);

        });
    </script>
</head>
<body>
    <uc5:top ID="top1" MenuClassID="1" focusLink1="focusLink" runat="server" />
    <div class="web_body">
    	<div class="model_2">
        	<div class="model_2_left">
            	<div class="hr3"></div>
            	<div class="newsBox">
                	<div class="nb_title">法制咨询</div>
                    <div class="nb_Content">
                        <asp:Repeater ID="rpt_1" runat="server">
                            <ItemTemplate>
                                <a href="<%#this.getDemain %>/news/NewsContent.aspx?NewsID=<%#Eval("ID") %>" class="yellow_big" target="_blank"><%#this.CutString(Eval("Title").ToString() ,24 ,false) %></a><br /><%#this.CutString(this.DelHTML(Eval("Overview").ToString()) ,28 ,false) %></div>
                            </ItemTemplate>
                        </asp:Repeater>
                    <ul>
                        <asp:Repeater ID="rpt_2" runat="server">
                            <ItemTemplate>
                                <li><a href="<%#this.getDemain %>/news/NewsContent.aspx?NewsID=<%#Eval("ID") %>" target="_blank"><%#this.CutString(Eval("Title").ToString() ,20 ,true) %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div class="hr4"></div>
                <div class="adbox">
                    <asp:Repeater ID="picad2_Rpt" runat="server">
                        <ItemTemplate>
                            <a href="<%#Eval("HttpUrl") %>" target="_blank"><img alt="<%#Eval("Title") %>" src="<%#Eval("PicUrl") %>" style="width:240px; height:85px;" /></a>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
            <div class="columfixxx">&nbsp;</div>
            <div class="model_2_mid">
            	<div class="hr3"></div>
            	<div class="model_2_mid_adbox">
                    <script type="text/javascript">
                        var linkarr = new Array();
                        var picarr = new Array();
                        var textarr = new Array();
                        <%
                            int i = 0;
                            foreach(hf.Model.News n in rotationNewsList)
                            {
                         %>
                            linkarr[<%=i %>] = "<%=this.getDemain %>/news/NewsContent.aspx?NewsID=<%=n.ID %>";
                            picarr[<%=i %>] = "<%=this.getManageDemain + this.getUpFileFolder + n.PicTitle %>";
                            textarr[<%=i %>] = "<%=n.Title %>";
                         <%
                            i++;
                            }
                         %>
                        adList(480, 220 ,linkarr ,picarr ,textarr);             
                    </script>
                </div>
                <div class="hr3"></div>
                <div class="midModel2">
                    <div class="midModel2Title">
                      <div class="titleBgFix"></div>
                      <div class="titleBg2">首席推荐律师</div>
                      <div class="titleBg">如何加入推荐？</div>
                      <div class="titleBg3"><a href="zhao.aspx">>>更多</a></div>
                    </div>
                    
                    <div class="layerbox">
                        <asp:Repeater ID="rpt_lawyer" runat="server">
                            <ItemTemplate>
                                <div class="layerPicbox">
                        	        <div class="picb"><img alt="" style="width:64px; height:82px;" src="<%#this.getDemain + this.getUpFileFolder + Eval("HeadPic") %>" /></div>
                                    <div class="pict"><a href="<%#this.getDemain %>/lawyeruser/lawyer.aspx?id=<%#Eval("ID") %>" class="layer"><%#Eval("RealName") %></a><br /><a href="<%#this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=<%#Eval("CityID") %>" class="layer"><%#this.getProvinceName(Eval("ProvinceID").ToString()).Replace("省","") %><%#this.getCityName(Eval("CityID").ToString()).Replace("市","") %></a></div>
                                </div>
                            </ItemTemplate>
                        </asp:Repeater>
                    	
                    </div>
                </div>
            </div>
            <div class="columfixxx">&nbsp;</div>
            <div class="model_2_right">
            	<div class="banklistbox">
                	<div class="banklistTitle">
                    	<div class="bkt_menu" id="l_Huoyue" onclick="reload_layerlist(0); LayerSelect('l_Huoyue');">活跃律师</div>
                        <div class="bkt_menu1" id="l_Zuigao" onclick="reload_layerlist(1); LayerSelect('l_Zuigao');">高分律师</div>
                    </div>
                    <div class="banklistContent">
                    	<ul id="layerBox">loading...</ul>
                    </div>
                </div>
                <div class="hr3"></div>
                <div class="sendMessageBox">
                	<div class="smb_title">
                    	<div class="smb_menu">发布咨询</div>
                        <div class="smb_menu1"><a href="/flzx.aspx" class="gaylink">更多</a></div>
                    </div>
                    <form id="sendMessage" action="/FAQs/ask.aspx" method="get" style="border:none">
                    <div class="smb_content">
                        <textarea id="asktitle" name="asktitle" style="width:190px; height:80px;"></textarea>
                    </div>
                    <div class="smb_btnbox"><input id="Submit1" type="image" src="Images/btn_01.gif" /></div>
                    </form>
                </div>
            </div>
        </div>
    
    	<div class="hr1"></div>
        
        <div class="model_ad">
        	<%
                int z = 0;
                foreach (hf.Model.Ad ad in adList1) {
                    %>
                    <div class="adbox"><a href="<%=ad.HttpUrl %>" target="_blank"><img alt="<%=ad.Title %>" style="width:240px; height:80px;" src="<%=ad.PicUrl %>" /></a></div>
                    <%
                    if (z != adList1.Count - 1)
                    { 
                        %>
                            <div class="adboxFix"></div>
                        <%
                    }
                    z++;
              }%>
        </div>
        
    	<div class="hr1"></div>
    	<div class="model_1">
        	<div class="leftModel">
            	<div class="leftModel_title">
                	<div class="leftModel_title_left titleStyle">名家说法</div>
                    <div class="leftModel_title_right"><a href="#">>>更多</a></div>
                </div>
            	<div class="leftModel_Content">
                	<div class="articletopbox">
                        <asp:Repeater ID="rpt_isTopArtice" runat="server">
                            <ItemTemplate>
                                <div class="atb_left">
                        	        <div class="picbox"><img alt="" style="width:88px; height:106px;" src="<%#this.getUpFileFolder + Eval("PicTitle").ToString() %>" /></div>
                                    <div class="titlebox"><a href="#" class="message_big"><%#this.CutString(Eval("Title").ToString() ,12 ,false) %></a></div>
                                </div>
                                <div class="atb_right">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%#this.CutString(this.DelHTML(Eval("Content").ToString()),96 ,true) %>[查看详细]</div>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                    <ul>
                        <asp:Repeater ID="rpt_ArticleList" runat="server">
                            <ItemTemplate>
                                <li>·<%#Eval("Author") %>&nbsp;&nbsp;<a href="#" class="message"><%#this.CutString(Eval("Title").ToString() ,24 ,false) %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <div class="columfix"></div>
            <div class="midModel2">
                  <div class="midModel2Title">
                      <div class="titleBgFix"></div>
                      <div class="titleBg2" id="new_LayerMessage" onclick="askSelect('new_LayerMessage'); reload_ask(0)">最新法律咨询</div>
                      <div class="titleBg" id="beOver_LayerMessage" onclick="askSelect('beOver_LayerMessage'); reload_ask(1)">已解决法律咨询</div>
                      <div class="titleBg" onclick="location='/FAQs/ask.aspx'">发布法律咨询</div>
                    </div>
                        <div class="midModel2Content">
                            <ul id="askBox"></ul>
                        </div>
                        <div class="midModel2Buttom"><uc1:c_province title="地区咨询" urlPage="/FAQs/asklist.aspx" ID="c_province1" runat="server" /></div>
              </div>
            	<div class="columfix"></div>
                <div class="leftModel">
                    <div class="leftModel_title leftModel_titleBix">
                    	<div class="ll_menu">按地区找律师</div>
                        <div class="ll_menu1">法律专长找律师</div>
                    </div>
                    <div class="leftModel_Content fixHeight">
                    	<div class="pcBox"><strong>热门城市：</strong><a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=1" class="citylink">北京</a>&nbsp;
                            <a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=3" class="citylink">上海</a>&nbsp;
                            <a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=20" class="citylink">深圳</a>&nbsp;
                            <a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=4" class="citylink">重庆</a>&nbsp;
                            <a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=18" class="citylink">武汉</a>&nbsp;
                            <a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=11" class="citylink">南京</a>&nbsp;
                            <a href="<%=this.getDemain %>/lawyeruser/lawyerlist.aspx?cityid=28" class="citylink">西安</a>
                            <br />
                        	<label>A</label> <uc4:c_ProvinceForKey key="a" ID="c_ProvinceForKey1" runat="server" />&nbsp;<label>B</label>&nbsp;<uc4:c_ProvinceForKey key="b" ID="c_ProvinceForKey2" runat="server" />&nbsp;<label>C</label>&nbsp;<uc4:c_ProvinceForKey key="c" ID="c_ProvinceForKey3" runat="server" /><br />
                            <label>F</label> <uc4:c_ProvinceForKey key="f" ID="c_ProvinceForKey4" runat="server" />&nbsp;<label>G</label>&nbsp;<uc4:c_ProvinceForKey key="g" ID="c_ProvinceForKey5" runat="server" /><br />
                            <label>H</label>&nbsp;<uc4:c_ProvinceForKey key="h" ID="c_ProvinceForKey6" runat="server" /><br />
                            <label>J</label>&nbsp;<uc4:c_ProvinceForKey key="j" ID="c_ProvinceForKey7" runat="server" />&nbsp;<label>L</label>&nbsp;<uc4:c_ProvinceForKey key="l" ID="c_ProvinceForKey8" runat="server" /><br />
                            <label>N</label>&nbsp;<uc4:c_ProvinceForKey key="n" ID="c_ProvinceForKey9" runat="server" />&nbsp;<label>Q</label>&nbsp;<uc4:c_ProvinceForKey key="q" ID="c_ProvinceForKey10" runat="server" /><br />
                            <label>S</label>&nbsp;<uc4:c_ProvinceForKey key="s" ID="c_ProvinceForKey11" runat="server" /><br />
                            <label>T</label>&nbsp;<uc4:c_ProvinceForKey key="t" ID="c_ProvinceForKey12" runat="server" />&nbsp;<label>X</label>&nbsp;<uc4:c_ProvinceForKey key="x" ID="c_ProvinceForKey13" runat="server" />&nbsp;<label>Z</label>&nbsp;<uc4:c_ProvinceForKey key="z" ID="c_ProvinceForKey14" runat="server" />
                        </div>
                    </div>
                </div>
                <div class="adbox2">
                    <asp:Repeater ID="picad_Rpt" runat="server">
                        <ItemTemplate>
                            <a href="<%#Eval("HttpUrl") %>" target="_blank"><img alt="<%#Eval("Title") %>" src="<%#Eval("PicUrl") %>" style="width:240px; height:74px;" /></a>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
        	</div>
    
    	<div class="hr1"></div>
    
    	<div class="model_ad1">
        	<%
                int y = 0;
                foreach (hf.Model.Ad ad in adList2) {
                    %>
                    <div class="adbox"><a href="<%=ad.HttpUrl %>" target="_blank"><img alt="<%=ad.Title %>" style="width:240px; height:50px;" src="<%=ad.PicUrl %>" /></a></div>
                    <%
                    if (y != adList2.Count - 1)
                    { 
                        %>
                            <div class="adboxFix"></div>
                        <%
                    }
                    y++;
              }%>
        </div>
    
    	<div class="hr1"></div>
    
    	<div class="model_1">
        	<div class="leftModel">
            	<div class="leftModel_title titleStyle">其他法律案件分类</div>
            	<uc3:c_LegalAffairsClass ID="c_LegalAffairsClass2" BoxStyle="leftModel_Content" Count="4" LegalAffairsID="6"  runat="server" />
            </div>
            <div class="columfix"></div>
            <div class="midModel2">
            	<div class="midModel2Title">
               	  <div class="titleBgFix"></div>
               	  <div class="titleBg2" id="aj_delegate" onclick="delegateMsg('aj_delegate'); reload_delegateList(0);">案件委托</div>
               	  <div class="titleBg" id="localaj_delegate" onclick="delegateMsg('localaj_delegate'); reload_delegateList(1);">本地案件委托</div>
                    <div class="titleBg3"><a href="/user/uc_AddDelegate.aspx" target="_blank"><img alt="" src="Images/icon_14.gif" /></a></div>
          		</div>
                	<div class="midModel2Content">
                    	<div class="midModel2Content_Title">
                        	<div class="c1">地区</div>
                            <div class="c2">案件标题</div>
                            <div class="c3">涉案金额</div>
                            <div class="c4">到期时间</div>
                        </div>
                        <div id="delegateBox">加载中...</div>
                    </div>
                	<div class="midModel2Buttom"><uc1:c_province title="地区委托" urlPage="/delegate/delegatelist.aspx" ID="c_province2" runat="server" />
                </div>
            		</div>
            	<div class="columfix"></div>
            <div class="leftModel">
            	<div class="leftModel_title">
                	<div class="leftModel_title_left titleStyle">在线律师</div>
                    <div class="leftModel_title_right"><a href="line.aspx">>>更多</a></div>
                </div>
            	<div class="leftModel_Content">
                	<ul id="OnlineLayer">
                    </ul>
                </div>
            </div>
        </div>
    
    	<div class="hr1"></div>
    
    	<div class="model_ad1">
            <%
                int x = 0;
                foreach (hf.Model.Ad ad in adList3) {
                    %>
                    <div class="adbox"><a href="<%=ad.HttpUrl %>" target="_blank"><img alt="<%=ad.Title %>" style="width:240px; height:50px;" src="<%=ad.PicUrl %>" /></a></div>
                    <%
                    if (x != adList3.Count - 1)
                    { 
                        %>
                            <div class="adboxFix"></div>
                        <%
                    }
                    x++;
              }%>
        </div>
        
   	  	<div class="hr1"></div>
        
		<div class="model_1">
        	<div class="leftModel">
            	<div class="leftModel_title titleStyle">民事案件分类</div>
                <uc3:c_LegalAffairsClass ID="c_LegalAffairsClass1" BoxStyle="leftModel_ContentLong" Count="8" LegalAffairsID="1"  runat="server" />
            </div>
            <div class="columfixLong"></div>
            <div class="rightModel">
            	<div class="rows_1">
                    <uc2:c_article ID="c_article1"  ClassID="11" ClassID2="12" runat="server" />
                    <div class="columfix"></div>
                    <uc2:c_article ID="c_article2" ClassID="3" ClassID2="6" runat="server" />
                    
                </div>
                <br />
                <div class="rows_1">
                    <uc2:c_article ID="c_article3" ClassID="4" ClassID2="9" runat="server" />
                    <div class="columfix"></div>
                    <uc2:c_article ID="c_article4" ClassID="5" ClassID2="2" runat="server" />

                </div>
            </div>
		</div>
    
    	<div class="hr1"></div>
    
    	<div class="model_ad">
            <%
                int j = 0;
                foreach (hf.Model.Ad ad in adList4) {
                    %>
                    <div class="adbox"><a href="<%=ad.HttpUrl %>" target="_blank"><img alt="<%=ad.Title %>" style="width:240px; height:80px;" src="<%=ad.PicUrl %>" /></a></div>
                    <%
                    if (j != adList4.Count - 1)
                    { 
                        %>
                            <div class="adboxFix"></div>
                        <%
                    }
                    j++;
              }%>
        </div>
    	
      <div class="hr1"></div>
        
  		<div class="model_1">
        	<div class="leftModel">
            	<div class="leftModel_title titleStyle">专业法律导航</div>
                <div class="leftModel_Content">
                	<ul>
                    	<li><label>B</label>&nbsp;<a href="#">标准专卖</a>&nbsp;<label>C</label>&nbsp;<a href="#">城乡建设</a>&nbsp;<a href="#">财政会计</a></li>
                        <li><label>D</label>&nbsp;<a href="#">电信邮政</a>&nbsp;<a href="#">动物检疫</a>&nbsp;</li>
                        <li><label>F</label>&nbsp;<a href="#">法制工作</a>&nbsp;<a href="#">房屋物业</a>&nbsp;<a href="#">防震减灾</a></li>
                        <li><label>G</label>&nbsp;<a href="#">公安国安</a>&nbsp;<a href="#">工业行业</a>&nbsp;<a href="#">工商经贸</a>&nbsp;<a href="#">公司企业</a></li>
                        <li><label>H</label>&nbsp;<a href="#">婚姻家庭</a>&nbsp;<a href="#">货币外汇</a>&nbsp;<a href="#">环境保护</a></li>
                        <li><label>J</label>&nbsp;<a href="#">检察业务</a>&nbsp;<a href="#">纪检监察</a>&nbsp;<a href="#">教育科技</a>&nbsp;<a href="#">交通运输</a></li>
                        <li><label>L</label>&nbsp;<a href="#">劳动人事</a>&nbsp;<a href="#">律师法顾</a></li>
                        <li><label>M</label>&nbsp;<a href="#">民法总类</a>&nbsp;<a href="#">民事诉讼</a>&nbsp;<a href="#">民政宗教</a></li>
                        <li><label>N</label>&nbsp;<a href="#">能源资源</a>&nbsp;<a href="#">农林水利</a>&nbsp;<label>Q</label>&nbsp;<a href="#">其他法律</a></li>
                        <li><label>S</label>&nbsp;<a href="#">审判业务</a>&nbsp;<a href="#">司法行政</a>&nbsp;<a href="#">食品药品</a></li>
                    </ul>
                </div>
            </div>
            <div class="columfix"></div>
            
            <uc2:c_article ID="c_article6" ClassID="38" ClassID2="39" runat="server" />
            <div class="columfix"></div>
            
            <uc2:c_article ID="c_article7" ClassID="19" ClassID2="48" runat="server" />
        </div>
    
    	<div class="hr1"></div>
        
        <div class="model_1">
        	<div class="leftModel">
            	<div class="leftModel_title titleStyle">法律专题</div>
                <div class="leftModel_Content">
                    <asp:Repeater ID="rpt_Topic" runat="server">
                        <ItemTemplate>
                            <div class="txtBox"><a href="/news/NewsList.aspx?topicid=<%#Eval("ID") %>"><%#Eval("TopicName") %></a></div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
            <div class="columfix"></div>
            
            <uc2:c_article ID="c_article8" ClassID="36" ClassID2="24" runat="server" />
            <div class="columfix"></div>
            
            <uc2:c_article ID="c_article9" ClassID="15" ClassID2="13" runat="server" />
        </div>
        </div>
    	<div class="hr1"></div>
    </div>    
    	<uc4:end ID="end1" runat="server" />
        
</body>
</html>
